package com.wjh.anyview.config;

import com.baomidou.mybatisplus.core.injector.ISqlInjector;
import com.baomidou.mybatisplus.extension.injector.LogicSqlInjector;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author wjh
 */
@Configuration
public class MyBatisPlusConfig {
    /**
     * 注册逻辑删除组件
     *
     * @return new LogicSqlInjector()
     */
    @Bean
    public ISqlInjector sqlInjector() {
        return new LogicSqlInjector();
    }

}
